package cn.wolfcode.demo1.qo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 5;


    public int getStart(){
        return (currentPage-1)*pageSize;
    }
}
